﻿@{
    ViewBag.Title = "CustomQuery";
}


        <div class="mini-toolbar" style="padding:2px;border-top:0;border-left:0;border-right:0;"> 
            <table style="width:100%;">
                <tr>
                    <td style="width:100%;">
                        <a class="mini-button" id="new" iconCls="icon-search" onclick="query" plain="true">查询</a>
                    </td>
                </tr>
            </table>       
        </div>            
        <div name="Base" title="" style="height:100%;overflow:hidden;margin-top:25px;margin-left:50px">
            <table>
                <tr>
                    <td width="80px" height ="50px" align="right">
                        订单号：</td>
                    <td width="280px" height ="50px">
                        <input name="FNumber" id="FNumber" class="mini-textbox" style="width:280px;"  value="" TabIndex="1"/>
                    </td>
                </tr>
                <tr>
                    <td>查询结果：</td>
                    <td>
                        <textarea id="content" name="content" style="width:280px;height:300px;"></textarea>
                    </td>
                </tr>
            </table>
            <br />
        </div>
        <div>

        </div>
<script>
    mini.parse();

    function query() {
        var json = "[{";
        json = json + "'BillNo':'" + mini.getbyName("FNumber").getValue() + "'}]";
        //主动查询
        $.post("../AppCenter/QueryPay2", { mjson: json }, function (data) {
            $("#content").val(data);
        });
    }
</script>